<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li{
            list-style: none;
            border: 1px solid gainsboro;
        }
    </style>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="(item,index) in arr">
                <h5>{{item.commentTxt}}</h5>
                <div>
                    {{item.createAt}}
                </div>
            </li>
        </ul>
    </div>
</body>
<script src="js/vue.js"></script>
<script src="js/axios.min.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data:{
            arr:[]
        },
        mounted() {
            axios.get("data.json")
            .then(res => {
                this.arr = res.data.data.commentList 
            }).catch(err => {
                console.log(err);
            })
        }
    })
</script>

</html>